﻿using Core.Domain.Common;
using System.Data.Entity.ModelConfiguration;

namespace Data.Mapping.Common
{
    public partial class ExtendedAttributeMap : EntityTypeConfiguration<ExtendedAttribute>
    {
        public ExtendedAttributeMap()
        {
            this.ToTable("ExtendedAttribute");
            this.HasKey(s => s.Id);
            this.Property(s => s.Name).IsRequired().HasMaxLength(200);

            this.Ignore(p => p.ExtendEnum);
        }
    }
}
